<template>
  <div id="app">
    <router-view />
    <tabber :class="this.haveTb.indexOf($route.name) > -1 ? 'isHave' : ''"></tabber>
  </div>
</template>


<script>
import Tabber from "@/components/Tabbar/Tabber";
export default {
  data() {
    return {
      active: 0,
      // 不需要tabber的页面
      haveTb: ["Details", "Branddetail"]
    };
  },
  // computed:{
  //   key(){
  //     return this.$route.name ? this.$route.name + new Date() :this.$route.name+new Date()
  //   }
  // },
  components: {
    Tabber
  },
  // 增加meta，禁止input聚焦的时候放大页面
  mounted() {
    document.querySelector("meta[name='viewport']")["content"] =
      "width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no";
  }
};
</script>

<style lang="less">
.isHave {
  display: none !important;
}
* {
  font-size: 14px;
}
</style>
